<?php
include dirname(__FILE__)."/s_user-verify.php";

?>
<html>
	<head>
		<title>修改密码</title>
	<link rel="stylesheet" type="text/css" href="../css/cmxform.css">
	<?php include dirname(dirname(dirname(__FILE__))).'/include/common-header.php';?>
	<script type="text/javascript" src="../../js/jquery.js"></script>
	<script type="text/javascript" src="../../js/jquery.validate.js"></script>
	<script type="text/javascript">
	$(document).ready(function(){
		$("#update-form").validate({
			rules: {
				pre_password:{
					required:true,
					minlength:6
					},
				password: {
					required: true,
					minlength: 6
				},
				confirm_password: {
					required: true,
					minlength: 6,
					equalTo: "#password"
				},
					
			},
			messages: {		
				pre_password:{
					required: "请填写用户密码",
					minlength: "用户密码长度至少为6"
				},
				password: {
					required: "请填写用户密码",
					minlength: "用户密码长度至少为6"
				},
				confirm_password: {
					required: "请确认密码",
					minlength: "用户密码长度至少为6",
					equalTo: "两次密码不一致"
				},
			}
		});
						
		
		});
	</script>
	
	</head>
	<body>
	 <form class="form-horizontal col-md-offset-3" id="update-form" role="form" method="post" action="update-password.php">
	 	<div class="form-group">
			 <label for="pre_password" class="col-sm-2 control-label">旧密码</label>
			  <div class="col-sm-10">
			    <input required style="width:60%" type="password" class="form-control" id="pre_password" name="pre_password" placeholder="原密码">
			   </div>
		</div>
	 	
	 	<div class="form-group">
			 <label for="password" class="col-sm-2 control-label">密码</label>
			 <div class="col-sm-10">
			    <input required style="width:60%" type="password" class="form-control" id="password" name="password" placeholder="密码">
			   </div>
		</div>
		
		<div class="form-group">
			 <label for="confirm_password" class="col-sm-2 control-label">确认密码</label>
			  <div class="col-sm-10">
			    <input required style="width:60%" type="password" class="form-control" id="confirm_password" name="confirm_password" placeholder="确认密码">
			   </div>
		</div>
		 <div class="form-group">
			    <div class="col-sm-offset-2 col-sm-10">
			      <input class="btn btn-primary" id="submit-btn" type="submit" value="修改">
			    </div>
			  </div>
			  <input name="submited" type="hidden" value="1">
	 </form>
	</body>
</html>